package com.ch09;

public class HeavyItem {
	int[] itemBody;
	String itemID;
	HeavyItem nextItem;

	HeavyItem(String ID, HeavyItem itemRef) { // (2)
		itemBody = new int[100000];
		itemID = ID;
		nextItem = itemRef;
	}

	protected void finalize() throws Throwable { // (3)
		System.out.println(itemID + ": recycled.");
		super.finalize();
	}
}
